﻿//************************************************************************************************
// Copyright © 2014 Steven M. Cohn. All Rights Reserved.
// 
//************************************************************************************************

namespace River.Folderize
{
	using System;


	/// <summary>
	/// A custom (user-defined) folder.
	/// </summary>

	internal class CustomFolder : Folder
	{

		/// <summary>
		/// Initialize a new instance with the specified unique identifier.
		/// </summary>
		/// <param name="guid">A GUID specified using the "B" formatting.</param>
		public CustomFolder (string guid)
			: base(guid)
		{
			this.IsPinned = true;
		}


		/// <summary>
		/// Copy constructor.  Used by properties editor.
		/// </summary>
		/// <param name="folder">The existing instance to copy.</param>
		public CustomFolder (CustomFolder folder)
			: this(folder.Guid)
		{
			this.Name = folder.Name;
			this.Path = folder.Path;
			this.Image = folder.Image;
			this.ImageRes = folder.ImageRes;
			this.IsPinned = folder.IsPinned;
		}


		/// <summary>
		/// Gets a value indicating whether this is a system-defined folder or
		/// a custom user-defined folder.
		/// </summary>
		public override bool IsSystemFolder
		{
			get { return false; }
		}
	}
}
